package com.ai;

import com.ai.module.chat.config.properties.AliyunProperty;
import com.ai.module.chat.config.properties.ChatGptProperty;
import com.ai.module.chat.config.properties.UserInfoProperty;
import com.ai.module.chat.config.properties.WeChatProperty;
import io.github.asleepyfish.annotation.EnableChatGPT;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.EnableAspectJAutoProxy;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.web.servlet.config.annotation.EnableWebMvc;

/**
 * @Author HeTongXue
 * @Date 2023/8/28 19:55
 * 启动类
 */
@EnableChatGPT
@SpringBootApplication
@EnableAsync
//@ComponentScan("com.chat.config.interceptor")
@EnableConfigurationProperties({UserInfoProperty.class, ChatGptProperty.class,
        AliyunProperty.class, WeChatProperty.class
        //, WxPayConfig.class
})
@EnableAspectJAutoProxy
@EnableWebMvc
public class ChatGptApplication {

    public static void main(String[] args) {
        SpringApplication.run(ChatGptApplication.class,args);
    }
}
